<%--
  Created by IntelliJ IDEA.
  User: cos
  Date: 2022/3/1
  Time: 17:30
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fm" uri="http://java.sun.com/jsp/jstl/fmt" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
    <table border="1">
        <tr>
            <th>员工编号</th>
            <th>员工姓名</th>
            <th>员工性别</th>
            <th>员工工资</th>
            <th>员工密码</th>
            <th>员工出生日期</th>
            <th>员工部门编号</th>
            <th>员工手机</th>
        </tr>
        <c:forEach items="${empList}" var="e">
            <tr>
                <th>${e.eno}</th>
                <th>${e.ename}</th>
                <th>${e.esex}</th>
                <th>${e.salary}</th>
                <th>${e.pwd}</th>
                <th>
                    <%-- 日期格式化处理 --%>
                    <fm:formatDate value="${e.bornDate}" pattern="yyyy年MM月dd日"/>
                </th>
                <th>${e.dno}</th>
                <th>${e.phone}</th>
            </tr>
        </c:forEach>
    </table>
</body>
</html>
